package main

import "gopkg.in/ffmt.v1"

type ListNode struct {
	Val  int
	Next *ListNode
}

func main() {
	win := maxProfit([]int{1, 2, 4, 2, 5, 7, 2, 4, 9, 0})
	ffmt.Puts(win)
}
